package org.pixelami.twisted.spread.jelly
{
	import org.pixelami.twisted.spread.pb.Utils;
	
	public class Jellyable extends JellyableBase//implements IJellable
	{
		public function Jellyable()
		{
		}

	    public function getStateFor(jellier:Object):Object
	    {
	        return this.__dict__;
	    }
	
	    public function jellyFor(jellier:*):Object
	    {
	        /*
	        @see L{twisted.spread.interfaces.IJellyable.jellyFor}
	        */
	        
	        var sxp:Array = jellier.prepare(this);
	        sxp.extend([
	            Utils.qual(this.__class__),
	            jellier.jelly(this.getStateFor(jellier))])
	        return jellier.preserve(this, sxp);
	        
	    }



	}
}